/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bankapplicationgui;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

/**
 *
 * @author harshi
 */
public class withdraw extends JFrame implements ActionListener{
    
    JPanel panelWithdraw;
    JLabel labelWithdraw;
    JTextField textWithdraw;
    JButton buttonContinue;
    JButton buttonExit;
    JButton buttonBack;
   
    public withdraw(){
        
        super("Withdraw");
        
        panelWithdraw=new JPanel();
        panelWithdraw.setLayout(new GridBagLayout());
        GridBagConstraints c=new GridBagConstraints( );
        
        

        labelWithdraw=new JLabel("Enter Amount to be deposited");
        textWithdraw=new JTextField(10);
        buttonContinue=new JButton("Continue");
        buttonBack=new JButton("Back");
        buttonExit=new JButton("Exit");
        
        c.gridx=0;
        c.gridy=0;
        c.gridwidth=3;
        panelWithdraw.add(labelWithdraw,c);
        c.gridx=0;
        c.gridy=1;
        c.gridwidth=3;
        panelWithdraw.add(textWithdraw,c);
        c.gridx=0;
        c.gridy=2;
        c.gridwidth=1;
        
        panelWithdraw.add(buttonContinue,c);
        c.gridx=1;
        c.gridy=2;
        c.gridwidth=1;
        panelWithdraw.add(buttonBack,c);
        c.gridx=2;
        c.gridy=2;
        c.gridwidth=1;
        panelWithdraw.add(buttonExit,c);
        
        add(panelWithdraw);
        
        setSize(300,200);
        setVisible(true);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        
    }
    public void actionPerformed(ActionEvent ae){
        //
    }
    
    
}


